package com.vincent.transmitdemo;

import com.alibaba.ttl.TransmittableThreadLocal;

public class MyTransmit extends TransmittableThreadLocal<Object> {
    @Override
    protected void beforeExecute() {
        super.beforeExecute();
        TaskInfo taskInfo = (TaskInfo) this.get();
        System.out.println(taskInfo.getId());
        this.set(taskInfo.getUserInfo());
    }

    @Override
    protected void afterExecute() {
        super.afterExecute();
    }
}
